import request from '@/utils/request'

// export function getList(params) {
//   return request({
//     url: '/vue-admin-template/table/list',
//     method: 'get',
//     params
//   })
// }
//获取设备
export function GetDevice(data) {
  return request({
    // url: '/equipment/dataList',
    url: '/equipment/dataList',
    method: 'get',
    params: data
  })
}

// 添加设备 检索 筛选
export function AddDevice(data) {
  return request({
    url: '/equipment/save',
    method: 'post',
    params: data
  })
}

// 修改设备
export function ModifyDevice(data) {
  return request({
    url: '/equipment/update',
    method: 'post',
    params: data
  })
}
//删除设备
export function DelateDevice(id) {
  return request({
    url: '/equipment/remove',
    method: 'post',
    params: id
  })
}

// 用户接口
export function getData(url, met, data) {
  return request({
    url: url,
    method: met,
    data: data
  })
}

// 获取工单列表
export function getWork(url, met, data) {
  return request({
    url: url,
    method: met,
    params: data
  })
}

// 获取侧边栏
export function getNav(url) {
  return request({
    url: url,
    method: 'get',
  })
}

//下载模板
export function downLoad(url, met) {
  return request({
    url: url,
    method: met,
    // responseType: "blob"
  });
}